package com.qy.service.impl;

import com.qy.dao.UsersMapper;
import com.qy.model.Users;
import com.qy.service.UsersService;
import com.qy.base.core.AbstractService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;


/**
 * Created by sxd on 2018/09/16.
 */
@Service
@Transactional
public class UsersServiceImpl extends AbstractService<Users> implements UsersService {
    @Resource
    private UsersMapper prUsersMapper;

    //根据email查询用户个数
    @Override
    public Integer SelectCount(String email) {
        return prUsersMapper.SelectCount(email);
    }
    //根据email查询用户密码
    @Override
    public String SelectPassword(String email) {
        return prUsersMapper.SelectPassword(email);
    }
}
